package com.kt.emall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kt.common.utils.PageUtils;
import com.kt.emall.product.entity.AttrGroupEntity;
import com.kt.emall.product.vo.AttrGroupWithAttrsVO;
import com.kt.emall.product.vo.SkuItemVO;
import com.kt.emall.product.vo.SpuItemAttrsGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author KamTeng
 * @email kamteng1998@qq.com
 * @date 2021-06-14 17:51:44
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    /**
     * 查出当前spu对应的所有属性的分组信息以及当前分组下所有属性对应的值
     * @param spuId
     * @param catelogId
     * @return
     */
    List<SpuItemAttrsGroupVO> getAttrGroupWithAttrsBySpuId(Long spuId, Long catelogId);
}

